package org.crud4j.wicket.markup.html.editor;

import org.apache.wicket.markup.html.form.TextField;
import org.apache.wicket.model.IModel;
import org.apache.wicket.model.PropertyModel;

class DefaultEditorPanel extends AbstractEditorPanel {

	private static final long serialVersionUID = 1L;

	public DefaultEditorPanel(String id, IModel model) {
		super(id, model);
		TextField value = new TextField("value", model);
		if (field.getDef().isEditDisabled()) {
			value.setEnabled(false);
		}
		add(value);
	}

}
